package com.matt.repository.care;

import com.matt.domain.care.HLHandoverRecord;
import com.matt.domain.care.HLHandoverRecordMedicine;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;


/**
 * 药品交接记录
 */
@Repository
public interface HLHandoverRecordMedicineRepository extends JpaRepository<HLHandoverRecordMedicine, String>, JpaSpecificationExecutor<HLHandoverRecordMedicine> {

    @Modifying
    void deleteAllByHandoverRecord(HLHandoverRecord record);
}
